package com.mxpio.erp.common.mes.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @Author : wpp
 * @Datetime : 2023/9/14 11:26
 * @Desc :
 * @Modor :  Modifytime:
 * @modDesc :
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_MES_AOI_LINE")
@Schema(description="AoiLine")
public class AoiLine extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    @Schema(description = "ID")
    private String id;

    @Column(name = "MID_", updatable = false)
    @Schema(description = "主表ID")
    private String mid;

    @Column(name = "ARRAY_ID_")
    @Schema(description = "ArrayID")
    private String arrayID;

    @Column(name = "WORK_TIME_")
    @Schema(description = "WorkTime")
    private String workTime;

    @Column(name = "PACKAGE_TYPE_")
    @Schema(description = "PackageType")
    private String packageType;

    @Column(name = "BOARD_BAR_CODE_")
    @Schema(description = "boardBarCode")
    private String boardBarCode;

    @Column(name = "COMPONENT_INDEX_")
    @Schema(description = "ComponentIndex")
    private String componentIndex;

    @Column(name = "IMAGE_PATH_")
    @Schema(description = "ImagePath")
    private String imagePath;

    @Column(name = "ARRAY_BAR_CODE_")
    @Schema(description = "ArrayBarCode")
    private String arrayBarCode;

    @Column(name = "DEFECT_")
    @Schema(description = "Defect")
    private String defect;


    @Column(name = "PART_DESIGNATE_")
    @Schema(description = "PartDesignate")
    private String partDesignate;


    @Column(name = "ARRAY_INDEX_")
    @Schema(description = "ArrayIndex")
    private String arrayIndex;

    @Column(name = "RESULT_")
    @Schema(description = "Result")
    private String result;

    @Column(name = "cnt_")
    @Schema(description = "数量")
    private BigDecimal cnt=BigDecimal.ONE;//默认为1
}
